import Vue from 'vue'
import App from './App'
import router from './router'

Vue.config.productionTip = false
//1.引入element-ui
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
Vue.use(ElementUI)
//2.导入vue-resource
import vueResource from 'vue-resource'
Vue.use(vueResource)
//3.设置请求根路径
Vue.http.options.root = 'http://192.168.1.12:8080/'
//4.全局设置post时候表单数据格式阻止形式
Vue.http.options.emulateJSON = true
//5.自适应插件
import 'lib-flexible'
//6.引入mint-ui
import MintUI from 'mint-ui'
import 'mint-ui/lib/style.css'
Vue.use(MintUI)
//7.引入mui
import './lib/mui/css/mui.min.css'
import './lib/mui/css/icons-extra.css'


new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
